package com.platform.qujia.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 清分 从队列拉取数据的json格式
 */
@Data
@TableName("t_clean_score")
public class CleanScore {

    @TableId(type = IdType.AUTO)
    private Long csId;

    private String accOrderNo;

    private String bankChannel;

    private BigDecimal bankDiscountAmt;

    private String busOrderNo;

    private String checkPattern;
    // 入账金额
    private BigDecimal clearAmt;

    private LocalDate clearDate;
    // 优惠打款金额
    private BigDecimal clearDiscountAmt;

    private String clearMerNo;

    private String clearOrder;

    private String clearStatus;

    // 入账时间
    private LocalDateTime crtTime;

    // 营销总优惠金额
    private BigDecimal discountAmt;

    private String divAccStatus;

    private BigDecimal feeAmt;

    // 支付流水号 以该字段作为数据唯一标识 避免重复消费
    private String id;

    private BigDecimal mchPayAmt;

    // 商户支付手续费
    private BigDecimal mchPayFee;

    // 运营费
    private BigDecimal operateAmt;

    private String operatingClearStatus;

    private String orgCode;

    private String partnerFeeClearOrder;

    private String partnerFeeClearStatus;

    // 合作方利润费用
    private BigDecimal partnerProfitAmt;

    //支付金额
    private BigDecimal payAmt;

    private BigDecimal payFeeProfit;

    private String payMerNo;

    private LocalDateTime payTime;

    // 平台优惠金额
    private BigDecimal platDiscountAmt;

    private String profitClearOrder;

    private String profitClearStatus;

    private String settAddExtraInfoFlag;

    private String settAddInfoFlag;

    private LocalDate settDate;

    private String settDivAccAddExtraInfoFlag;

    private String settDivAccAddInfoFlag;

    private int settFlag;

    //结算账户号 商户号
    private String settMerAcc;

    private BigDecimal settRate;

    //清分结算优惠，默认开启，可以进行修改,结算时是否结算优惠，1计算优惠，2不计算优惠
    private int settlementDiscountFlag;

    // 赞助商优惠金额
    private BigDecimal sponsorDiscountAmt;

    private String srcId;

    // 供应商优惠金额
    private BigDecimal supDiscountAmt;

    // 总金额
    private BigDecimal txnAmt;

    // 交易类型 01.消费 02.退货 03.撤销
    private String txnType;

    private LocalDateTime updTime;
}
